package cn.pn.project.client.commodity.follback;

import cn.pn.project.client.commodity.SkuFeign;
import cn.pn.project.pojo.commodity.Sku;
import org.springframework.stereotype.Component;

import java.sql.SQLException;
import java.util.List;
@Component
public class SkuFeignFallback implements SkuFeign {
    /**
     * 根据商品id查询场次id
     * @param commdityId
     * @return
     * @throws SQLException
     */
    @Override
    public List<Sku> getSkuByCommdityId(Integer commdityId) throws SQLException {
        System.out.println("根据商品id查询场次id出错了");
        return null;
    }

    /**
     * 根据场次id和商品id查询skuid
     * @param commdityId 商品id
     * @param sessionId 场次id
     * @return
     * @throws SQLException
     */
    @Override
    public List<Sku> getSkuByCommdityIdAndSessionId(Integer commdityId, Integer sessionId) throws SQLException {
        System.out.println("根据场次id和商品id查询skuid出错了");
        return null;
    }

    @Override
    public Sku getPrice(Integer commdityId, Integer sessionId, Integer ticketFileId) throws SQLException {
        System.out.println("根据getPrice出错了");
        return null;
    }
}
